<?php
class Demo{
    private static $ceshi = null;

    private function __construct()
    {
    }

    public static function getInstance(){
        if(self::$ceshi == null){
            return new self();
        }else{
            return self::$ceshi;
        }
    }
}

